package com.pactera.miyuangroup.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.pactera.miyuangroup.db.entity.VendorInfo;
import com.baomidou.mybatisplus.service.IService;
import com.pactera.miyuangroup.vo.request.app.AppPageVenderGoodsReq;
import com.pactera.miyuangroup.vo.request.app.AppPageVenderReq;
import com.pactera.miyuangroup.vo.request.web.VendorInfoRequest;
import com.pactera.miyuangroup.vo.response.app.AppPageVenderGoodsRes;
import com.pactera.miyuangroup.vo.response.app.AppPageVenderRes;
import com.pactera.miyuangroup.vo.response.web.VendorInfoRes;
import com.pactera.miyuangroup.vo.response.web.VendorPassagewayRes;

import java.util.List;

/**
 * <p>
 * 售货机 服务类
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
public interface VendorInfoService extends IService<VendorInfo> {

    /*
    *  查询售货机列表信息
    *
    * */
    Page<VendorInfoRes> getVendorInfoList(VendorInfoRequest vendorInfoRequest, String ordId);

    List<VendorPassagewayRes> getPassagewayList(String vendorId);


    /**
     * APP 售货机查询
     *
     * @param userId 用户ID
     * @param request
     * @return
     */
    Page<AppPageVenderRes> getAppVendorInfoList(String userId, AppPageVenderReq request);

    /**
     * APP 查询售货机商品信息
     * @param vendorId
     * @param req
     * @return
     */
    Page<AppPageVenderGoodsRes> getAppVenderGoodsInfoList(String vendorId, AppPageVenderGoodsReq req);


    /**
     * 同步售货机信息
     */
    boolean syncMiyuanVenderInfo();

}
